package test;

import java.io.IOException;
import java.util.LinkedList;
import java.util.List;



public class Main {


    public static void main( String[] args ) throws IOException{
    	List<GenericService> services = new LinkedList<GenericService>();
    	services.add(new GoogleService().login("googlename", "googlepassword"));
    	services.add(new FacebookService().login("facebookname", "facebookpass"));
    	
    	while(true){
    		try{ Thread.sleep(3000); }catch(Exception e){}
    		for(GenericService gs : services){
    			System.out.println(gs.getOnlineList());
    		}
    	}
    	
    }

}
